package com.ruoyi.agentExpend.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 代理商消费明细对象 sys_expend_details
 *
 * @author ruoyi
 * @date 2024-06-21
 */
public class AgentExpend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 交易标识id，十位数字和字母组成 */
    @Excel(name = "交易标识id，十位数字和字母组成")
    private String exchangeMark;

    /** 商户id */
    private Long storeId;

    /** 商户名称 */
    private String storeName;

    /** 代理商id */
    @Excel(name = "代理商id")
    private Long agentId;

    /** 消费类型 0代理商充值 1商家充值 2商家发起背调扣费 3对应代理商接口调用扣费 */
    private String type;



    /** 交易金钱数额 */
    @Excel(name = "交易金钱数额")
    private BigDecimal exchangeAmount;

    /** 交易后余额 */
    @Excel(name = "交易后余额")
    private BigDecimal balance;

    /** 交易信息，展示对应的订单编号和套餐名称、候选人数量、操作人名称 */
    @Excel(name = "交易信息，展示对应的订单编号和套餐名称、候选人数量、操作人名称")
    private String content;

    /** 对应交易数据的id，比如订单id */
    private Long dataId;

    /** 对应的交易凭证 */
    private String imgUrl;

    /** 用户id */
    private Long userId;

    /** 部门id */
    private Long deptId;


    //序号
    private Long sortNm;

    //代理商名称
    private String agentName;

    private Date beginCreateTime;

    private Date endCreateTime;

    public Date getBeginCreateTime() {
        return beginCreateTime;
    }

    public void setBeginCreateTime(Date beginCreateTime) {
        this.beginCreateTime = beginCreateTime;
    }

    public Date getEndCreateTime() {
        return endCreateTime;
    }

    public void setEndCreateTime(Date endCreateTime) {
        this.endCreateTime = endCreateTime;
    }

    public Long getSortNm() {
        return sortNm;
    }

    public void setSortNm(Long sortNm) {
        this.sortNm = sortNm;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setExchangeMark(String exchangeMark)
    {
        this.exchangeMark = exchangeMark;
    }

    public String getExchangeMark()
    {
        return exchangeMark;
    }
    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }

    public Long getStoreId()
    {
        return storeId;
    }
    public void setStoreName(String storeName)
    {
        this.storeName = storeName;
    }

    public String getStoreName()
    {
        return storeName;
    }
    public void setAgentId(Long agentId)
    {
        this.agentId = agentId;
    }

    public Long getAgentId()
    {
        return agentId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setExchangeAmount(BigDecimal exchangeAmount)
    {
        this.exchangeAmount = exchangeAmount;
    }

    public BigDecimal getExchangeAmount()
    {
        return exchangeAmount;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setDataId(Long dataId)
    {
        this.dataId = dataId;
    }

    public Long getDataId()
    {
        return dataId;
    }
    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl()
    {
        return imgUrl;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("exchangeMark", getExchangeMark())
            .append("storeId", getStoreId())
            .append("storeName", getStoreName())
            .append("agentId", getAgentId())
            .append("type", getType())
            .append("exchangeAmount", getExchangeAmount())
            .append("balance", getBalance())
            .append("content", getContent())
            .append("dataId", getDataId())
            .append("imgUrl", getImgUrl())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .toString();
    }
}
